package com.th.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 风格
 * </p>
 *
 * @author yangzihuang
 * @since 2022-06-18
 */
@TableName("metadata_style")
@ApiModel(value = "MetadataStyle对象", description = "风格")
public class MetadataStyle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("排序号")
    @NotNull(message = "排序号不能为空")
    private Integer orderNum;

    @ApiModelProperty("备注")
    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "MetadataStyle{" +
                "id=" + id +
                ", name=" + name +
                ", cover=" + cover +
                ", orderNum=" + orderNum +
                ", description=" + description +
                "}";
    }
}
